import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:yt_devops/components/app_bar/app_bar_widget.dart';
import 'package:yt_devops/resources/resources.dart';
import 'package:yt_devops/resources/str_res_keys.dart';
import 'package:yt_devops/styles/styles.dart';
import 'suggest_commit_result_controller.dart';

class SuggestCommitResultPage extends GetView<SuggestCommitResultController> {
  const SuggestCommitResultPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colour.white,
      appBar: AppBarWidget.defaultAppBar(ResKey.feedback.tr),
      body: Center(
        child: Container(
          width: 255.w,
          margin: EdgeInsets.only(top: 72.h),
          alignment: Alignment.topCenter,
          child: Column(
            children: [
              Image.asset(
                ImageAssets.iconCommitSuccess,
                width: 92.w,
                height: 92.w,
              ),
              SizedBox(
                height: 20.h,
              ),
              Text(
                ResKey.submitSuccessTip.tr,
                style: TextStyles.f20.boldStyle,
              ),
              SizedBox(
                height: 8.h,
              ),
              Text(
                ResKey.thanksContent.tr,
                style: TextStyles.lf14.copyWith(height: 1.5),
                textAlign: TextAlign.center,
              )
            ],
          ),
        ),
      ),
    );
  }
}
